package com.ruibang.glass.etl.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.format.DateTimeFormatter;

import lombok.Data;
import org.apache.commons.lang3.StringUtils;

/**
 * <p>
 * 
 * </p>
 *
 * @author Auto-generator
 * @since 2024-04-19
 */

@ApiModel(value ="")
@TableName("sl_station_jq_detail")
@Data
public class SlStationJqDetail {

    @TableId(value = "_id")
    private String id;
    @TableField("JQ_GlassID_NEW")
    private String jqGlassidNew;
    @TableField("B_alram_on")
    private String bAlramOn;
    @TableField("B_auto_stop")
    private String bAutoStop;
    @TableField("B_living_confirm")
    private String bLivingConfirm;
    @TableField("B_error_reset")
    private String bErrorReset;
    @TableField("B_buzzer_stop")
    private String bBuzzerStop;
    @TableField("B_pass_mode")
    private String bPassMode;
    @TableField("B_auto_run")
    private String bAutoRun;
    @TableField("JQ_notify")
    private String jqNotify;
    @TableField("B_receive_complete")
    private String bReceiveComplete;
    @TableField("JQ_GlassID_NEW_REQ")
    private String jqGlassidNewReq;
    @TableField("JQ_broken")
    private String jqBroken;
    @TableField("JQ_equipment_status")
    private String jqEquipmentStatus;
    private String stationProductionTime;
    @TableField("JQ_bc_cnt")
    private String jqBcCnt;
    @TableField("JQ_broken_glassID")
    private String jqBrokenGlassid;
    @TableField("JQ_GlassID_OUT")
    private String jqGlassidOut;
    @TableField("JQ_GlassID_TRANSFER")
    private String jqGlassidTransfer;
    @TableField("JQ_xfyl_sz2")
    private String jqXfylSz2;
    @TableField("JQ_cbgzt_left_pressure")
    private String jqCbgztLeftPressure;
    @TableField("JQ_xfyl_sz1")
    private String jqXfylSz1;
    @TableField("JQ_xfyl_sz3")
    private String jqXfylSz3;
    @TableField("B_send_complete")
    private String bSendComplete;
    @TableField("JQ_xfyl_sz4")
    private String jqXfylSz4;
    @TableField("JQ_xhsj")
    private String jqXhsj;
    @TableField("JQ_cbgzt_right_pressure")
    private String jqCbgztRightPressure;
    @TableField("JQ_dbgzt_left_pressure")
    private String jqDbgztLeftPressure;
    @TableField("JQ_bljs_right_pressure")
    private String jqBljsRightPressure;
    @TableField("JQ_dbgzt_right_pressure")
    private String jqDbgztRightPressure;
    @TableField("JQ_zkb_zkyl")
    private String jqZkbZkyl;
    @TableField("JQ_cbqg_left_pressure")
    private String jqCbqgLeftPressure;
    @TableField("JQ_cbqg_jswz_yc")
    private String jqCbqgJswzYc;
    @TableField("JQ_cbqg_right_pressure")
    private String jqCbqgRightPressure;
    @TableField("JQ_GlassID_IN")
    private String jqGlassidIn;
    @TableField("JQ_at_Number")
    private String jqAtNumber;
    @TableField("JQ_cbqg_jswz_zc")
    private String jqCbqgJswzZc;
    @TableField("JQ_br_cnt")
    private String jqBrCnt;
    @TableField("JQ_cb_xz_sc")
    private String jqCbXzSc;
    @TableField("JQ_dbqg_end_zc")
    private String jqDbqgEndZc;
    @TableField("JQ_dbqg_end_yc")
    private String jqDbqgEndYc;
    @TableField("JQ_cb_xz_xc")
    private String jqCbXzXc;
    @TableField("JQ_dbqg_start_zc")
    private String jqDbqgStartZc;
    @TableField("JQ_db_xz_sc")
    private String jqDbXzSc;
    @TableField("JQ_cbqg_qxbz_start_y_zc")
    private String jqCbqgQxbzStartYZc;
    @TableField("JQ_cbqg_qxbz_start_x_zc")
    private String jqCbqgQxbzStartXZc;
    @TableField("JQ_db_xz_xc")
    private String jqDbXzXc;
    @TableField("JQ_dbqg_start_yc")
    private String jqDbqgStartYc;
    @TableField("JQ_cbqg_qxbz_start_x_yc")
    private String jqCbqgQxbzStartXYc;
    @TableField("JQ_cbqg_qxbz_end_y_zc")
    private String jqCbqgQxbzEndYZc;
    @TableField("JQ_cbqg_qxbz_start_y_yc")
    private String jqCbqgQxbzStartYYc;
    @TableField("JQ_cbqg_qxbz_end_y_yc")
    private String jqCbqgQxbzEndYYc;
    @TableField("JQ_dbqg_qxbz_end_x_zc")
    private String jqDbqgQxbzEndXZc;
    @TableField("JQ_bljs_left_pressure")
    private String jqBljsLeftPressure;
    @TableField("JQ_dbqg_qxbz_start_x_zc")
    private String jqDbqgQxbzStartXZc;
    @TableField("JQ_dbqg_qxbz_start_y_yc")
    private String jqDbqgQxbzStartYYc;
    @TableField("JQ_dbqg_qxbz_start_y_zc")
    private String jqDbqgQxbzStartYZc;
    @TableField("JQ_dbqg_qxbz_end_y_zc")
    private String jqDbqgQxbzEndYZc;
    @TableField("JQ_dbqg_qxbz_start_x_yc")
    private String jqDbqgQxbzStartXYc;
    @TableField("JQ_cb_syqgyl_zc")
    private String jqCbSyqgylZc;
    @TableField("JQ_cb_syqgyl_yc")
    private String jqCbSyqgylYc;
    @TableField("JQ_dbqg_qxbz_end_x_yc")
    private String jqDbqgQxbzEndXYc;
    @TableField("JQ_db_syqgyl_zc")
    private String jqDbSyqgylZc;
    @TableField("JQ_dbqg_speed")
    private String jqDbqgSpeed;
    @TableField("JQ_cbqg_qxbz_end_x_zc")
    private String jqCbqgQxbzEndXZc;
    @TableField("JQ_cbgztqjsysd_cb")
    private String jqCbgztqjsysdCb;
    @TableField("JQ_cbdlsy_left_distance")
    private String jqCbdlsyLeftDistance;
    @TableField("JQ_cbgztqjsysd_d")
    private String jqCbgztqjsysdD;
    @TableField("JQ_db_syqgyl_yc")
    private String jqDbSyqgylYc;
    @TableField("JQ_cbdlsy_right_distance")
    private String jqCbdlsyRightDistance;
    @TableField("JQ_dbdlsy_right_distance")
    private String jqDbdlsyRightDistance;
    @TableField("JQ_dbdlsy_left_distance")
    private String jqDbdlsyLeftDistance;
    @TableField("JQ_cb_dkcl_ys")
    private String jqCbDkclYs;
    @TableField("JQ_cb_dkcl_yx")
    private String jqCbDkclYx;
    @TableField("JQ_cb_dkcl_zs")
    private String jqCbDkclZs;
    @TableField("JQ_cbqg_qxbz_end_x_yc")
    private String jqCbqgQxbzEndXYc;
    @TableField("JQ_db_dkcl_zs")
    private String jqDbDkclZs;
    @TableField("JQ_db_dkcl_yx")
    private String jqDbDkclYx;
    @TableField("JQ_db_dkcl_ys")
    private String jqDbDkclYs;
    @TableField("JQ_db_blcl_zc1")
    private String jqDbBlclZc1;
    @TableField("JQ_db_blcl_zc3")
    private String jqDbBlclZc3;
    @TableField("JQ_dbqg_qxbz_end_y_yc")
    private String jqDbqgQxbzEndYYc;
    @TableField("JQ_db_blcl_zc2")
    private String jqDbBlclZc2;
    @TableField("JQ_db_blcl_zc4")
    private String jqDbBlclZc4;
    @TableField("JQ_db_blcl_yc1")
    private String jqDbBlclYc1;
    @TableField("JQ_db_dkcl_zx")
    private String jqDbDkclZx;
    @TableField("JQ_db_blcl_yc2")
    private String jqDbBlclYc2;
    @TableField("JQ_cbgztqjhdbl")
    private String jqCbgztqjhdbl;
    @TableField("JQ_cb_dkcl_zx")
    private String jqCbDkclZx;
    @TableField("JQ_db_blcl_yc3")
    private String jqDbBlclYc3;
    @TableField("JQ_db_blcl_yc4")
    private String jqDbBlclYc4;
    @TableField("JQ_qgdysy")
    private String jqQgdysy;
    @TableField("JQ_cbblf_blower")
    private String jqCbblfBlower;
    @TableField("JQ_cbblf_attract")
    private String jqCbblfAttract;
    @TableField("JQ_dbblf_blower")
    private String jqDbblfBlower;
    @TableField("JQ_dbblf_attract")
    private String jqDbblfAttract;
    @TableField("JQ_cb_bbbxjlbz_yx")
    private String jqCbBbbxjlbzYx;
    @TableField("JQ_cb_bbbxjlbz_zs")
    private String jqCbBbbxjlbzZs;
    @TableField("JQ_cb_bbbxjlbz_zx")
    private String jqCbBbbxjlbzZx;
    @TableField("JQ_cjsp")
    private String jqCjsp;
    @TableField("JQ_dbgztqjhdbl")
    private String jqDbgztqjhdbl;
    @TableField("JQ_cb_bbbxjlbz_ys")
    private String jqCbBbbxjlbzYs;
    @TableField("JQ_cb_bbbsslbz_ys")
    private String jqCbBbbsslbzYs;
    @TableField("JQ_cb_bbbsslbz_yx")
    private String jqCbBbbsslbzYx;
    @TableField("JQ_db_bbbxjlbz_zs")
    private String jqDbBbbxjlbzZs;
    @TableField("JQ_cb_bbbsslbz_zx")
    private String jqCbBbbsslbzZx;
    @TableField("JQ_db_bbbxjlbz_ys")
    private String jqDbBbbxjlbzYs;
    @TableField("JQ_cb_bbbsslbz_zs")
    private String jqCbBbbsslbzZs;
    @TableField("JQ_db_bbbxjlbz_zx")
    private String jqDbBbbxjlbzZx;
    @TableField("JQ_cbqg_speed")
    private String jqCbqgSpeed;
    @TableField("JQ_db_bbbsslbz_yx")
    private String jqDbBbbsslbzYx;
    @TableField("JQ_db_bbbsslbz_zx")
    private String jqDbBbbsslbzZx;
    @TableField("JQ_db_bbbsslbz_ys")
    private String jqDbBbbsslbzYs;
    @TableField("JQ_cjdlsy")
    private String jqCjdlsy;
    @TableField("JQ_cbbb_speed")
    private String jqCbbbSpeed;
    @TableField("JQ_db_bbbsslbz_zs")
    private String jqDbBbbsslbzZs;
    @TableField("JQ_dbbb_speed")
    private String jqDbbbSpeed;
    @TableField("JQ_db_blclyshpyl")
    private String jqDbBlclyshpyl;
    @TableField("JQ_blclyshjd")
    private String jqBlclyshjd;
    @TableField("JQ_db_bbbxjlbz_yx")
    private String jqDbBbbxjlbzYx;
    private String productionLineCode;
    private String stationId;
    private String tag;
    private String station;
    @TableField("idObj")
    private String idObj;
    private String glassId;
    private String table;
    private String createTime;
    @TableField("tagText")
    private String tagText;
    private String stationStartTime;
    @TableField("idList_in")
    private String idlistIn;
    private String stationCompleteTime;
    private String createTimeFormat;
    @TableField("start_Time")
    private String startTime;
    @TableField("GlassID_NEW_REQ")
    private String glassidNewReq;

    public void setCreateTime(String createTime){

        this.createTime = createTime;
    }
    public String getCreateTime(){
        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
        if(StringUtils.isNotBlank(createTime) && createTime.matches("\\d+")){
            Instant instant = Instant.ofEpochMilli(Long.parseLong(createTime));
            ZoneId zone = ZoneId.systemDefault();
            return LocalDateTime.ofInstant(instant, zone).format(formatter);
        }
        return LocalDateTime.now().format(formatter);
    }

}
